<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录</title>
    <script>
        function reg() {
            window.location.href="/regist.jsp"
        }
    </script>
</head>
<body>
    <fieldset style="width:300px;height:200px;margin: 80px auto 0px">
        <legend>请登录</legend>
        <form action="userAction_login.action" method="post">
            <br>
            用户名:<input type="text" name="username"><br><br>
            密&nbsp;&nbsp;&nbsp;码:<input type="password" name="password"><br><br>
            <input type="submit" value="登录">&nbsp;&nbsp;
            <button type="button" onclick="reg();">注册</button><br><br>
            <div style="color: red;text-align: center">${tip}</div>
        </form>
    </fieldset>
</body>
</html>
